import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// vant完整导入
import Vant from 'vant'
import 'vant/lib/index.css'
// 主题定制
import 'vant/lib/index.less'

// 所有组件都要用，所以注册成全局组件

import ArticleItem from '@/components/ArticleItem.vue'
Vue.component('ArticleItem', ArticleItem)

Vue.use(Vant)
// 自动按需导入
// import { Button, Swipe, SwipeItem } from 'vant'
// Vue.use(Button)
// Vue.use(Swipe)
// Vue.use(SwipeItem)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
